﻿class Solution {
    public int xorOperation(int n, int start) {
int ret=0;
for(int i=0;i<n;i++){
    ret=ret^start+2*i;
}
return ret;
    }
}